﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServerConsole
{
    class ServersRem : MarshalByRefObject
    {
        public void ReciveFreeHost(string host, int port)
        {
            if (ReciveFreeHostEvent != null)
                ReciveFreeHostEvent.Invoke(host, port);
        }

        public static event ReciveFreeHostEventHandler ReciveFreeHostEvent;
        public delegate void ReciveFreeHostEventHandler(string host, int port);


        public void GetServer()
        {
            if (GetServerEvent != null)
                GetServerEvent.Invoke();
        }

        public static event GetServerEventHandler GetServerEvent;
        public delegate Server GetServerEventHandler();
    }
}
